{extend name="template/base_iframe" /}

{block name="content"}
        <div id="tab_demo" class="HuiTab">
        <!-- 选项卡 -->
            <div class="tabBar clearfix">
                <span>基础信息</span>
                <span>详细信息</span>
                <span>修改密码</span>
            </div>
        <!-- 基础内容 -->
            <div class="tabCon">
                <form class="form form-horizontal" action="{:url('edit_proc')}" method="post" >
                    <input type="hidden" name="id" value="{$data.id}">
                    <input type="hidden" name="scene" value="editCommon">

                    <div class="row cl">
                        <label class="form-label col-xs-3 col-ms-3">帐号</label>
                        <div class="formControls col-xs-6 col-ms-6">
                            <input name="username" type="text" placeholder="请输入新用户帐号" value="{$data.username}" class="input-text radius group-title">
                        </div>
                    </div>

                    <div class="row cl">
                        <label class="form-label col-xs-3 col-ms-3">状态</label>
                        <div class="skin-minimal">
                          <div class="radio-box">
                            <input type="radio" id="status-1" class="ara-radio" name="status" value="1" {$data.status?'checked':''}/>
                            <label for="status-1">开启</label>
                          </div>
                          <div class="radio-box">
                            <input type="radio" id="status-2" class="ara-radio" name="status" value="0" {$data.status?'':'checked'}>
                            <label for="status-2">禁用</label>
                          </div>
                        </div>
                    </div>

                    <div class="row cl">
                        <label class="form-label col-xs-3 col-ms-3">能否删除</label>
                        <div class="skin-minimal">
                          <div class="radio-box">
                            <input type="radio" id="isdelete-1" class="ara-radio" name="isdelete" value="1" {$data.isdelete?'checked':''}/>
                            <label for="isdelete-1">可以</label>
                          </div>
                          <div class="radio-box">
                            <input type="radio" id="isdelete-2" class="ara-radio" name="isdelete" value="0" {$data.isdelete?'':'checked'}>
                            <label for="isdelete-2">不能</label>
                          </div>
                        </div>
                    </div>

                    <div class="row cl">
                        <div class="formControls col-xs-6 col-xs-offset-3">
                            <input name="" type="button" class="btn btn-success radius mr-20 submit" value="保存">
                            <input name="" type="reset" class="btn btn-default radius" value="重置">
                        </div>
                    </div>      
                </form>
            </div>
            <!-- 详细内容 -->
            <div class="tabCon">
                <form class="form form-horizontal" action="{:url('edit_proc')}" method="post">
                    <input type="hidden" name="id" value="{$data.id}">
                    <input type="hidden" name="scene" value="editDetailed">

                    <div class="row cl">
                        <label class="form-label col-xs-3 col-ms-3">真实姓名</label>
                        <div class="formControls col-xs-6 col-ms-6">
                            <input name="realname" type="text" placeholder="请输入真实姓名" value="{$data.realname}" class="input-text radius group-title">
                        </div>
                    </div>

                    <div class="row cl">
                        <label class="form-label col-xs-3 col-ms-3">邮箱</label>
                        <div class="formControls col-xs-6 col-ms-6">
                            <input name="email" type="text" placeholder="请输入邮箱" value="{$data.email}" class="input-text radius group-title">
                        </div>
                    </div>

                    <div class="row cl">
                        <label class="form-label col-xs-3 col-ms-3">电话</label>
                        <div class="formControls col-xs-6 col-ms-6">
                            <input name="mobile" type="text" placeholder="请输入电话" value="{$data.mobile}" class="input-text radius group-title">
                        </div>
                    </div>

                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-3">备注</label>
                        <div class="formControls col-xs-6 col-sm-6">
                            <textarea class="textarea radius" placeholder="说点什么..." rows="" cols="" name="remark">{$data.remark}</textarea>
                        </div>
                    </div>


                    <div class="row cl">
                        <div class="formControls col-xs-6 col-xs-offset-3">
                            <input name="" type="button" class="btn btn-success radius mr-20 submit" value="保存">
                            <input name="" type="reset" class="btn btn-default radius" value="重置">
                        </div>
                    </div>      
                </form>

            </div>
            <!-- 修改密码 -->
            <div class="tabCon">
                <form class="form form-horizontal" action="{:url('edit_proc')}" method="post">
                    <input type="hidden" name="id" value="{$data.id}">
                    <input type="hidden" name="scene" value="editPassword">

                    <div class="row cl">
                        <label class="form-label col-xs-3 col-ms-3">旧密码</label>
                        <div class="formControls col-xs-6 col-ms-6">
                            <input name="old_password" type="password" placeholder="请输旧密码" value="" class="input-text radius group-title">
                        </div>
                    </div>

                    <div class="row cl">
                        <label class="form-label col-xs-3 col-ms-3">新密码</label>
                        <div class="formControls col-xs-6 col-ms-6">
                            <input name="password" type="password" placeholder="请输旧密码" value="" class="input-text radius group-title">
                        </div>
                    </div>

                    <div class="row cl">
                        <label class="form-label col-xs-3 col-ms-3">确认密码</label>
                        <div class="formControls col-xs-6 col-ms-6">
                            <input name="confirm_password" type="password" placeholder="请输旧密码" value="" class="input-text radius group-title">
                        </div>
                    </div>


                    <div class="row cl">
                        <div class="formControls col-xs-6 col-xs-offset-3">
                            <input name="" type="button" class="btn btn-success radius mr-20 submit" value="保存">
                            <input name="" type="reset" class="btn btn-default radius" value="重置">
                        </div>
                    </div>      
                </form>
            </div>
        </div>


{/block}



{block name="script"}
	<script type="text/javascript" src="__AJS__/admin_user/edit.js"></script>
{/block}